#include<stdio.h>
#include<stdlib.h>
int size_1_qsort(const void *p1,const void *p2)
{
	return (*(int*)p1- *(int*)p2);
}
int size_2_qsort(const void* p1, const void* p2)
{
	return (*(char*)p1 - *(char*)p2);
}
void my_int_print(int x, int arr[])
{
	for (size_t i = 0; i <x ; i++)
	{
		printf("%d\n", arr[i]);
	}
}
int main()
{
	int arr1[10] = { 0,99,25,45,44,65,47,2,54,10 };
	char arr2[5] = { 'm','p','j','f','s' };

	int size_1 = sizeof(arr1) / sizeof(arr1[0]);
	int size_2 = sizeof(arr2) / sizeof(arr2[0]);
	my_int_print(size_1, arr1);
	qsort(arr1,size_1,sizeof(int),size_1_qsort);
	qsort(arr1, size_2, sizeof(char), size_2_qsort);
	my_int_print(size_1, arr1);
	return 0;
}